<template>
  <div class="root">
    <div class="app-bar">
      <div class="app-bar-button">
        <img src="../assets/chat/arrow-left.svg"   alt=""/>
      </div>
      <div class="app-bar-center">
        <div class="nickname">张医生</div>
        <div class="status">在线</div>
      </div>
      <div class="app-bar-button">
        <img src="../assets/chat/three-dot.svg"   alt=""/>
      </div>
    </div>
    <div class="content">
      <div style="height: 4rem"></div>
      <div class="chat-time">上午 10:30</div>
      <div class="other-chat">
        <img class="avatar" alt="" src="../assets/chat/avatar-doc.png"/>
        <div class="chat-content-other">
          <div class="chat-item-other">
            您好，我是主治医师张明。根据您
            的症状描述，建议进行以下检查：
          </div>
          <div class="chat-item-other">
            六百六十六
          </div>
        </div>
      </div>
      <div class="my-chat">

        <div class="chat-content-me">
          <div class="chat-item-me">
            好的，我明白了。我这就去做检查。再见😊
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div><div class="chat-item-me">
          六百六十六
        </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div class="chat-item-me">
            六百六十六
          </div>
          <div style="height: 5rem"></div>

        </div>
        <img class="avatar" alt="" src="../assets/chat/avatar-doc.png"/>
      </div>
    </div>
    <div class="return-area">
      <div class="plus">
        <img src="../assets/chat/plus.svg" alt=""/>
      </div>
      <div class="input-box">
        <div class="text-input">
          &nbsp&nbsp&nbsp请输入消息
        </div>
      </div>
      <div class="send-button">
        <img src="../assets/chat/send.svg" alt=""/>
      </div>
    </div>








  </div>
</template>
<script>
  export default {
    name:"chat"
}
</script>

<script setup>

</script>
<style scoped lang="scss">

.root {


  .app-bar {
    height: 3.5rem;
    width: 100%;
    padding: 0 1rem;
    //固定位置
    position: fixed;


    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgb(255, 255, 255);
    box-sizing: border-box;
    border-width: 0rem 0rem 0.06rem 0rem;
    border-style: solid;
    border-color: rgba(106, 106, 106, 0.62);
  }
  .app-bar-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .app-bar-button {
    width: 2rem;
    height: 2rem;

    display: flex;
    justify-content: center;
    align-items: center;
  }
  .chat-time {
    display: flex;
    justify-content: center;
    align-items: center;


    font-size: 0.75rem;
    font-weight: normal;
    line-height: 1rem;
    text-align: center;
    letter-spacing: normal;
    color: #9CA3AF;
  }
  .plus {

    /* 自动布局子元素 */
    width: 2.5rem;
    height: 2.5rem;

    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0.625rem;
  }
  .send-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;

    background: #4A90E2;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-right: 0.625rem;
  }





}
.nickname{
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.31rem;
  letter-spacing: normal;
  color: #111827;
}
.status{
  font-size: 0.75rem;
  font-weight: normal;
  line-height: 1rem;
  letter-spacing: normal;
  color: #22C55E;
}


.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;

}

.chat-item-other {
  margin-bottom: 0.625rem;

  width: 15rem;

  /* 自动布局 */
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0rem 0.625rem;
  flex-wrap: wrap;
  align-content: flex-start;

  border-radius: 0.75rem;
  background: #F5F5F5;


}
.chat-content-other{
  margin-left: 0.625rem;
}




.other-chat {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;

  margin-top: 1.5rem;
}

.my-chat {
  /* 自动布局子元素 */

  /* 自动布局 */
  display: flex;
  justify-content: flex-end;
  padding: 0rem;
  gap: 0rem 0rem;
  flex-wrap: wrap;
  align-content: flex-start;

  margin-top: 1.5rem;
}

.chat-content-me {
  margin-right: 0.625rem;
}
.chat-item-me {
  width: 15.01rem;

  /* 自动布局 */
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0rem 0.625rem;
  flex-wrap: wrap;
  align-content: flex-start;

  border-radius: 0.75rem;
  background: #4A90E2;
  margin-bottom: 0.625rem;

  // 字体
  font-size: 0.88rem;
  font-weight: normal;
  line-height: 1.31rem;
  letter-spacing: normal;
  color: #FFFFFF;
}

.return-area {
  height: 3.5rem;
  background-color: #FFFFFF;
  // 固定在底部
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-width: 0.06rem 0rem 0rem 0rem;
  border-style: solid;
  border-color: rgba(37, 37, 37, 0.62);

  display: flex;
  justify-content: space-between;
  align-items: center;
}
//input {
//  border: none; /* 去掉边框 */
//  outline: none; /* 去掉聚焦时的外边框 */
//}

.input-box {
  /* 自动布局子元素 */
  width: 16.44rem;
  height: 2.31rem;
  /* 自动布局 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;


  flex-wrap: wrap;
  align-content: flex-start;


  border-radius: 624.94rem;
  background: #F3F4F6;
}
.text-input{
  font-family: Roboto;
  font-size: 0.88rem;
  font-weight: normal;
  line-height: 1.25rem;
  letter-spacing: normal;
  color: #9CA3AF;
}


</style>